<%@page language="Java" contentType="text/html; UTF-8"
pageEncoding="UTF-8"%>
<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
   
   <h2>Kontakt</h2>
   
   <h5>Mozesz sie z nami kontaktowac za pomoca formularza kontaktowego:</h5>
   <html:form action="contact"><table>
   <tr>
  <td> Imie:</td><td> <input type="text" id="name" name="name"/></td>
  </tr>
  <tr>
  <td> Email:</td><td> <input type="text" id="email" name="email"/></td>
  </tr>
  <tr>
   <td>Tresc wiadomosci:</td>
   </table>
    <textarea name="text" id="text" rows="10" cols="50"></textarea>
   <center> <input type="submit" class="submit" value="Wyslij!" />
   <font color="red"><html:errors property="error" /></font></center>
   </html:form><br><br>
   <%@ page import="ssi.beans.User"%>
<%
User user;
String username;
String status = null;
if(session.getAttribute("user")!=null){
	user = (User)session.getAttribute("user");
%>
<p>Jestes zalogowany! Mozesz skorzystac z <a href="index.jsp?page=messages">wiadomosci</a>!</p>
<%} %>

   